package com.demo.springcloud.service;

import com.demo.springcloud.pojo.CommonResult;
import com.demo.springcloud.pojo.Payment;
import org.springframework.stereotype.Component;

/**
 * @author chenyuan
 * @date 2020/12/23 11:14
 */
@Component
public class FeignFallbackService implements FeignService {
	@Override
	public CommonResult<Payment> paymentSQL(Long id) {
		return new CommonResult<>(44444, "服务降级返回,---FeignFallbackService", new Payment(id, "errorSerial"));
	}
}
